/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAO;

import entity.Assignment;
import entity.Mark;
import entity.Student;
import entity.SubmitOfAssignment;
import java.util.Vector;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;

/**
 *
 * @author ZERO
 */
@Stateless
@LocalBean
public class StaffBean {

    DataProcess dp = new DataProcess();
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")

    public entity.Staff getStaffByEmailName(String emailname) {
        return dp.getStaffByEmailName(emailname);
    }

    public Vector<entity.Entity_Class> getClassByStaffID(String staffid) {
        return dp.getClassByStaffID(staffid);
    }

    public Vector<Student> getStudentByClass(String classid) {
        return dp.getStudentByClass(classid);
    }

    public Vector<Student> getStudentByName(String classid, String name) {
        return dp.getStudentByName(classid, name);
    }

    public Vector<Assignment> getAssignmentByClass(String classid) {
        return dp.getAssignmentByClass(classid);
    }
    public  Vector<Mark> getMarkByAssignmentIDStaff(String assignmentid){
        return dp.getMarkByAssignmentIDStaff(assignmentid);
    }
    public  Vector<SubmitOfAssignment> getSubmitOfAssignmentByAssignmentID(String assignmentid)
    {
        return dp.getSubmitOfAssignmentByAssignmentID(assignmentid);
    }
    public  boolean enterMark(String assignmentid, String studentid, float mark){
        return dp.enterMark(assignmentid, studentid, mark);
    }
     public  boolean updateStatusAssignment(String assignmentid) {
         return dp.updateStatusAssignment(assignmentid);
     }
}
